Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>DOS MZ executable</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/DOS_MZ_executable"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-DOS_MZ_executable rootpage-DOS_MZ_executable skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">DOS MZ executable</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1251242444">
/* start https://en.wikipedia.org/ */


.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style>
<p class="mw-empty-elt">
</p>
<style data-mw-deduplicate="TemplateStyles:r1295905060">
/* start https://en.wikipedia.org/ */


.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}


/* end https://en.wikipedia.org/ */
</style><table class="infobox"><tbody><tr><th colspan="2" class="infobox-above" style="padding-bottom: 0.15em;">DOS MZ executable</th></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><a href="Filename_extension" title="Filename extension">Filename extension</a></th><td class="infobox-data" style="line-height: 1.35;"><style data-mw-deduplicate="TemplateStyles:r886049734">
/* start https://en.wikipedia.org/ */


.mw-parser-output .monospaced{font-family:monospace,monospace}


/* end https://en.wikipedia.org/ */
</style><div class="monospaced">
.<a href="EXE" class="mw-redirect" title="EXE">exe</a>, .<a href="COM_file" title="COM file">com</a>, .<a href="Dynamic-link_library" title="Dynamic-link library">dll</a></div></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><a href="Media_type" title="Media type">Internet media&nbsp;type</a></th><td class="infobox-data" style="line-height: 1.35;">application/x-dosexec, application/x-msdos-program, application/x-ms-dos-executable</td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><a href="File_format#Magic_number" title="File format">Magic number</a></th><td class="infobox-data" style="line-height: 1.35;"><code>4D 5A</code> (<code>MZ</code> in <a href="ASCII" title="ASCII">ASCII</a>)</td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;">Type of format</th><td class="infobox-data" style="line-height: 1.35;"><a href="Binary_file" title="Binary file">Binary</a>, <a href="Executable" title="Executable">executable</a></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;">Extended&nbsp;to</th><td class="infobox-data" style="line-height: 1.35;"><a href="New_Executable" title="New Executable">New Executable</a><br><a href="Linear_Executable" title="Linear Executable">Linear Executable</a><br><a href="Portable_Executable" title="Portable Executable">Portable Executable</a></td></tr></tbody></table>
<p>The <b>DOS MZ executable</b> format is the <a href="Executable" title="Executable">executable</a> <a href="File_format" title="File format">file format</a> used for .<a href="EXE" class="mw-redirect" title="EXE">EXE</a> files in <a href="DOS" title="DOS">DOS</a>.
</p><p>The file can be identified by the <a href="ASCII" title="ASCII">ASCII</a> string "MZ" (<a href="Hexadecimal" title="Hexadecimal">hexadecimal</a>: 4D 5A) at the beginning of the file (the "<a href="Magic_number_(programming)" title="Magic number (programming)">magic number</a>"). "MZ" are the initials of <a href="Mark_Zbikowski" title="Mark Zbikowski">Mark Zbikowski</a>, one of the leading developers of <a href="MS-DOS" title="MS-DOS">MS-DOS</a>.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>The MZ DOS executable file is newer than the <a href="COM_file" title="COM file">COM executable format</a> and differs from it. The DOS executable <a href="Header_(computing)" title="Header (computing)">header</a> contains <a href="Relocation_(computing)" title="Relocation (computing)">relocation</a> information, which allows multiple segments to be loaded at arbitrary memory addresses, and it supports executables larger than 64k; however, the format still requires relatively low memory limits. These limits were later bypassed using <a href="DOS_extender" title="DOS extender">DOS extenders</a>.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Segment_handling">Segment handling</h2></div>
<p>The environment of an EXE program run by DOS is found in its <a href="Program_Segment_Prefix" title="Program Segment Prefix">Program Segment Prefix</a>.
</p><p>EXE files normally have separate segments for the code, data, and stack. Program execution begins at address 0 of the <a href="Code_segment" title="Code segment">code segment</a>, and the stack pointer register is set to whatever value is contained in the header information (thus if the header specifies a 512 byte stack, the stack pointer is set to 200h). It is possible to not use a separate stack segment and simply use the code segment for the stack if desired.
</p><p>The DS (<a href="Data_segment" title="Data segment">data segment</a>) register normally contains the same value as the CS (code segment) register and is not loaded with the actual segment address of the data segment when an EXE file is initialized; it is necessary for the programmer to set it themselves, generally done via the following instructions:
</p>
<div class="mw-highlight mw-highlight-lang-nasm mw-content-ltr" dir="ltr"><pre><span class="w"> </span><span class="nf">MOV</span><span class="w"> </span><span class="nb">AX</span><span class="p">,</span><span class="w"> </span><span class="err">@</span><span class="nv">DATA</span>
<span class="w"> </span><span class="nf">MOV</span><span class="w"> </span><span class="nb">DS</span><span class="p">,</span><span class="w"> </span><span class="nb">AX</span>
</pre></div>
<div class="mw-heading mw-heading2"><h2 id="Termination">Termination</h2></div>
<p>In the original <a href="DOS_1.x_API" class="mw-redirect" title="DOS 1.x API">DOS 1.x API</a>, it was also necessary to have the CS register pointing to the segment with the PSP at program termination; this was done via the following instructions:
</p>
<div class="mw-highlight mw-highlight-lang-nasm mw-content-ltr" dir="ltr"><pre><span class="w"> </span><span class="nf">PUSH</span><span class="w"> </span><span class="nb">DS</span>
<span class="w"> </span><span class="nf">XOR</span><span class="w"> </span><span class="nb">AX</span><span class="p">,</span><span class="w"> </span><span class="nb">AX</span>
<span class="w"> </span><span class="nf">PUSH</span><span class="w"> </span><span class="nb">AX</span>
</pre></div>
<p>Program termination would then be performed by a RETF instruction, which would retrieve the original segment address with the PSP from the stack and then jump to address 0, which contained an INT 20h instruction.
</p><p>The <a href="DOS_2.x_API" class="mw-redirect" title="DOS 2.x API">DOS 2.x API</a> introduced a new program termination function, INT 21h Function 4Ch which does not require saving the PSP segment address at the start of the program, and Microsoft advised against the use of the older DOS 1.x method.
</p>
<div class="mw-heading mw-heading2"><h2 id="Compatibility">Compatibility</h2></div>
<p>MZ DOS executables can be run from DOS and <a href="Windows_9x" title="Windows 9x">Windows 9x</a>-based operating systems. 32-bit <a href="Windows_NT" title="Windows NT">Windows NT</a>-based operating systems can execute them using their built-in <a href="Virtual_DOS_machine" title="Virtual DOS machine">Virtual DOS machine</a> (although some graphics modes are unsupported). 64-bit versions of Windows cannot execute them. Alternative ways to run these executables include <a href="DOSBox" title="DOSBox">DOSBox</a> and <a href="DOSEMU" title="DOSEMU">DOSEMU</a>.
</p><p>MZ DOS executables can be created by <a href="Linker_(computing)" title="Linker (computing)">linkers</a>, like <a href="Digital_Mars" title="Digital Mars">Digital Mars</a> <a href="Optlink" class="mw-redirect" title="Optlink">Optlink</a>, MS linker, VALX or <a href="Open_Watcom" class="mw-redirect" title="Open Watcom">Open Watcom</a>'s WLINK; additionally, <a href="FASM" title="FASM">FASM</a> can create them directly.
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="DOS" title="DOS">DOS</a></li>
<li><a href="DOS_extender" title="DOS extender">DOS extender</a></li>
<li><a href="Portable_Executable" title="Portable Executable">Portable Executable</a></li>
<li><a href="DOS_API" title="DOS API">DOS API</a></li>
<li><a href="Executable_compression" title="Executable compression">Executable compression</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2></div>
<ul><li><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFPaul2002" class="citation newsgroup cs1">Paul, Matthias R. (2002-10-07) [2000]. <a rel="nofollow" class="external text" href="https://groups.google.com/d/msg/alt.msdos.programmer/d7blJjY0H5M/Qu3VeTOIGVcJ">"Re: Run a COM file"</a>. <a href="Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&nbsp;<a rel="nofollow" class="external text" href="news:alt.msdos.programmer">alt.msdos.programmer</a>. <a rel="nofollow" class="external text" href="https://archive.today/20170903230312/https://groups.google.com/forum/%23!msg/alt.msdos.programmer/d7blJjY0H5M/Qu3VeTOIGVcJ">Archived</a> from the original on 2017-09-03<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-09-03</span></span>.</cite></li>
<li><cite id="CITEREFMatthias_Paul2002" class="citation web cs1">Matthias Paul (2002-10-07). <a rel="nofollow" class="external text" href="https://groups.google.com/d/msg/alt.lang.asm/PNOd9zfYow0/vXbab16j4XwJ">"masm .com(PSP) related trouble"</a>. <i>alt.lang.asm discussion group</i>.</cite></li></ul>
<ul><li><cite id="CITEREFEager2024" class="citation web cs1">Eager, Bob (2024-12-16). <a rel="nofollow" class="external text" href="https://www.tavi.co.uk/phobos/exeformat.html">"Notes on the format of DOS .EXE files"</a>. <i>PHOBOS reference material</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2024-12-18</span></span>.</cite></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://msdn.microsoft.com/en-us/magazine/bb985992.aspx">Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format - MSDN Magazine, February 2002</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180711022043/https://msdn.microsoft.com/en-us/magazine/bb985992.aspx">Archived</a> 2018-07-11 at the <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>. "Every PE file begins with a small MS-DOS executable.&nbsp;... The first bytes of a PE file begin with the traditional MS-DOS header, called an IMAGE_DOS_HEADER. The only two values of any importance are e_magic and e_lfanew.&nbsp;... The e_magic field (a WORD) needs to be set to the value 0x5A4D.&nbsp;... In ASCII representation, 0x5A4D is MZ, the initials of Mark Zbikowski, one of the original architects of MS-DOS."</span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://wiki.osdev.org/MZ">OSDev Wiki - MZ format details</a></li></ul>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" ยท ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}


/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="Executable_and_object_file_formats118" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div id="Executable_and_object_file_formats118" style="font-size:114%;margin:0 4em"><a href="Executable" title="Executable">Executable</a> and <a href="Object_file" title="Object file">object file</a> formats</div></th></tr><tr><td colspan="2" class="navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="A.out" title="A.out">a.out</a></li>
<li><a href="Arm_Image_Format" title="Arm Image Format">AIF</a></li>
<li><a href="COFF" title="COFF">COFF</a></li>
<li><a href="CMD_file_(CP/M)" title="CMD file (CP/M)">CMD</a></li>
<li><a href="COM_file" title="COM file">COM</a></li>
<li><a href="ECOFF" title="ECOFF">ECOFF</a></li>
<li><a href="Executable_and_Linkable_Format" title="Executable and Linkable Format">ELF</a></li>
<li><a href="GOFF" title="GOFF">GOFF</a></li>
<li><a href="Amiga_Hunk" title="Amiga Hunk">Hunk</a></li>
<li><a href="Mach-O" title="Mach-O">Mach-O</a></li>

<li><a href="New_Executable" title="New Executable">NE</a></li>
<li><a href="Object_Module_Format_(Intel)" title="Object Module Format (Intel)">OMF</a></li>
<li><a href="OS/360_Object_File_Format" title="OS/360 Object File Format">OS/360</a></li>
<li><a href="Portable_Executable" title="Portable Executable">PE</a></li>
<li><a href="Preferred_Executable_Format" title="Preferred Executable Format">PEF</a></li>
<li><a href=".X_(Human68K)" class="mw-redirect" title=".X (Human68K)">X</a></li>
<li><a href="XCOFF" title="XCOFF">XCOFF</a></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow hlist" colspan="2"><div>
<ul><li><a href="Comparison_of_executable_file_formats" title="Comparison of executable file formats">Comparison of formats</a></li>
<li><a href=".exe" title=".exe">.exe</a></li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"></div><div role="navigation" class="navbox" aria-labelledby="Disk_operating_systems_(DOS)553" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Disk_operating_systems_(DOS)553" style="font-size:114%;margin:0 4em"><a href="Disk_operating_system" title="Disk operating system">Disk operating systems</a> (DOS)</div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><a href="DOS_API" title="DOS API">API</a></li>
<li><a href="Timeline_of_DOS_operating_systems" title="Timeline of DOS operating systems">Timeline</a></li>
<li><a href="Comparison_of_DOS_operating_systems" title="Comparison of DOS operating systems">Comparison</a></li>
<li><a href="List_of_DOS_commands" title="List of DOS commands">Commands</a></li>
<li><a href="Index_of_DOS_games" title="Index of DOS games">Games</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">MS-DOS, IBM PC DOS,<br>compatible systems</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="MS-DOS" title="MS-DOS">MS-DOS</a>
<ul><li><a href="MS-DOS_4.0_(multitasking)" title="MS-DOS 4.0 (multitasking)">Multitasking MS-DOS 4.0/4.1</a></li>
<li><a href="MS-DOS_7" title="MS-DOS 7">MS-DOS 7</a></li></ul></li>
<li><a href="IBM_PC_DOS" title="IBM PC DOS">IBM PC DOS</a></li>
<li><a href="DOS/V" title="DOS/V">DOS/V</a></li>
<li><a href="DR-DOS" title="DR-DOS">DR-DOS</a></li>
<li><a href="H-DOS" class="mw-redirect" title="H-DOS">H-DOS</a></li>
<li><a href="Novell_DOS" class="mw-redirect" title="Novell DOS">Novell DOS</a></li>
<li><a href="ROM-DOS" class="mw-redirect" title="ROM-DOS">ROM-DOS</a></li>
<li><a href="SISNE_plus" title="SISNE plus">SISNE plus</a></li>
<li><a href="PTS-DOS" title="PTS-DOS">PTS-DOS</a></li>
<li><a href="FreeDOS" title="FreeDOS">FreeDOS</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other <a href="X86" title="X86">x86</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="IBM_4680_OS" class="mw-redirect" title="IBM 4680 OS">4680 OS</a></li>
<li><a href="4690_OS" class="mw-redirect" title="4690 OS">4690 OS</a></li>
<li><a href="86-DOS" title="86-DOS">86-DOS</a></li>
<li><a href="ADOS_(Russian_operating_system)" class="mw-redirect" title="ADOS (Russian operating system)">ADOS</a></li>
<li><a href="Concurrent_CP/M-86" class="mw-redirect" title="Concurrent CP/M-86">Concurrent CP/M-86</a></li>
<li><a href="Concurrent_DOS" class="mw-redirect" title="Concurrent DOS">Concurrent DOS</a></li>
<li><a href="CP/M-86" title="CP/M-86">CP/M-86</a></li>
<li><a href="CP/K" class="mw-redirect" title="CP/K">CP/K</a></li>
<li><a href="Datapac_System_Manager" class="mw-redirect" title="Datapac System Manager">Datapac System Manager</a></li>
<li><a href="DOS_Plus" title="DOS Plus">DOS Plus</a></li>
<li><a href="K8918-OS" class="mw-redirect" title="K8918-OS">K8918-OS</a></li>
<li><a href="FlexOS" title="FlexOS">FlexOS</a></li>
<li><a href="MP/M-86" class="mw-redirect" title="MP/M-86">MP/M-86</a></li>
<li><a href="Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a></li>
<li><a href="NetWare_PalmDOS" class="mw-redirect" title="NetWare PalmDOS">NetWare PalmDOS</a></li>
<li><a href="Novell_DOS" class="mw-redirect" title="Novell DOS">Novell DOS</a></li>
<li><a href="OpenDOS" class="mw-redirect" title="OpenDOS">OpenDOS</a></li>
<li><a href="PC-MOS/386" title="PC-MOS/386">PC-MOS/386</a></li>
<li><a href="REAL/32" class="mw-redirect" title="REAL/32">REAL/32</a></li>
<li><a href="SB-86" class="mw-redirect" title="SB-86">SB-86</a></li>
<li><a href="SCP1700" class="mw-redirect" title="SCP1700">SCP1700</a></li>
<li><a href="Towns_OS" class="mw-redirect" title="Towns OS">Towns OS</a></li>
<li><a href="TurboDOS" title="TurboDOS">TurboDOS</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other platforms</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="AmigaDOS" title="AmigaDOS">AmigaDOS</a></li>
<li><a href="AMSDOS" title="AMSDOS">AMSDOS</a></li>
<li><a href="ANDOS" title="ANDOS">ANDOS</a></li>
<li><a href="Apple_DOS" title="Apple DOS">Apple DOS</a></li>
<li><a href="Apple_ProDOS" title="Apple ProDOS">Apple ProDOS</a></li>
<li><a href="Apple_SOS" title="Apple SOS">Apple SOS</a></li>
<li><a href="Atari_DOS" title="Atari DOS">Atari DOS</a></li>
<li><a href="Atari_TOS" title="Atari TOS">Atari TOS</a></li>
<li><a href="BW-DOS" class="mw-redirect" title="BW-DOS">BW-DOS</a></li>
<li><a href="Commodore_DOS" title="Commodore DOS">Commodore DOS</a></li>
<li><a href="Concurrent_DOS_68K" class="mw-redirect" title="Concurrent DOS 68K">Concurrent DOS 68K</a></li>
<li><a href="Concurrent_DOS_V60" class="mw-redirect" title="Concurrent DOS V60">Concurrent DOS V60</a></li>
<li><a href="CP/M" title="CP/M">CP/M</a></li>
<li><a href="Cromemco_DOS" title="Cromemco DOS">Cromemco DOS</a></li>
<li><a href="CSI-DOS" title="CSI-DOS">CSI-DOS</a></li>
<li><a href="DEC_BATCH-11/DOS-11" title="DEC BATCH-11/DOS-11">DEC BATCH-11/DOS-11</a></li>
<li><a href="DIP_DOS" class="mw-redirect" title="DIP DOS">DIP DOS</a></li>
<li><a href="DOS/360" class="mw-redirect" title="DOS/360">DOS/360</a></li>
<li><a href="DOS_XL" title="DOS XL">DOS XL</a></li>
<li><a href="Edos" title="Edos">Edos</a></li>
<li><a href="EOS_(8-bit_operating_system)" title="EOS (8-bit operating system)">EOS</a></li>
<li><a href="FLEX_(operating_system)" title="FLEX (operating system)">FLEX</a></li>
<li><a href="GEMDOS" class="mw-redirect" title="GEMDOS">GEMDOS</a></li>
<li><a href="IDEDOS" title="IDEDOS">IDEDOS</a></li>
<li><a href="IMDOS" title="IMDOS">IMDOS</a></li>
<li><a href="IS-DOS" title="IS-DOS">iS-DOS</a></li>
<li><a href="ISIS_(operating_system)" title="ISIS (operating system)">ISIS</a></li>
<li><a href="Myarc_Disk_Operating_System" title="Myarc Disk Operating System">MDOS</a></li>
<li>MicroDOS</li>
<li><a href="MP/M" title="MP/M">MP/M</a></li>
<li><a href="MSX-DOS" title="MSX-DOS">MSX-DOS</a></li>
<li><a href="MyDOS" class="mw-redirect" title="MyDOS">MyDOS</a></li>
<li><a href="NewDos/80" title="NewDos/80">NewDos/80</a></li>
<li><a href="OS/M" class="mw-redirect" title="OS/M">OS/M</a></li>
<li><a href="PTDOS" title="PTDOS">PTDOS</a></li>
<li><a href="RealDOS" class="mw-redirect" title="RealDOS">RealDOS</a></li>
<li><a href="SB-80" class="mw-redirect" title="SB-80">SB-80</a></li>
<li><a href="Single_User_Control_Program" class="mw-redirect" title="Single User Control Program">SCP</a></li>
<li><a href="Sinclair_QDOS" title="Sinclair QDOS">Sinclair QDOS</a></li>
<li><a href="Data_General_RDOS" title="Data General RDOS">RDOS</a></li>
<li><a href="SmartDOS" class="mw-redirect" title="SmartDOS">SmartDOS</a></li>
<li><a href="SpartaDOS" class="mw-redirect" title="SpartaDOS">SpartaDOS</a></li>
<li><a href="SpartaDOS_X" title="SpartaDOS X">SpartaDOS X</a></li>
<li><a href="Technical_Support_SuperDOS" class="mw-redirect" title="Technical Support SuperDOS">Technical Support SuperDOS</a></li>
<li><a href="Top-DOS" class="mw-redirect" title="Top-DOS">Top-DOS</a></li>
<li><a href="TR-DOS" title="TR-DOS">TR-DOS</a></li>
<li><a href="TRSDOS" title="TRSDOS">TRSDOS</a></li>
<li><a href="TurboDOS" title="TurboDOS">TurboDOS</a></li>
<li><a href="UDOS" class="mw-redirect" title="UDOS">UDOS</a></li>
<li><a href="Z-DOS" title="Z-DOS">Z-DOS</a></li>
<li><a href="Z80-RIO" title="Z80-RIO">Z80-RIO</a></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><span class="noviewer" typeof="mw:File"><span title="Category"></span></span>&nbsp;Category</li>
<li><span class="noviewer" typeof="mw:File"><span title="List-Class article"></span></span>&nbsp;<a href="List_of_disk_operating_systems_called_DOS" title="List of disk operating systems called DOS">List</a></li></ul>
</div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-10" href="https://en.wikipedia.org/wiki/?title=DOS_MZ_executable&amp;oldid=1299785796">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>